﻿#ifndef SEARCHHOTEL_H
#define SEARCHHOTEL_H

#include <QWidget>
#include "searchhotelheader.h"
#include "searchhotelcontent.h"
#include "hoteldetails.h"


namespace Ui {
class SearchHotel;
}

class SearchHotel : public QWidget
{
    Q_OBJECT
signals:
    void signalGainHotelDetailsSearch(const QString&);
    void signalGainHotelInfoListSocket(QString msg);
    void signalWatchCommentSearch();

public:
    explicit SearchHotel(QWidget *parent = nullptr);
    ~SearchHotel();

    void initWindowsUnits();

public slots:
    void slotSetHotelInfoList(bool result, QString msg);
    void slotHotelSearchImage(const QString &hotelID, const QImage& image);
    void slotGainHotelInfoListForClean(QString msg);

private:
    Ui::SearchHotel *ui;
    SearchHotelHeader *m_searchHotelHeader;
    QVector<SearchHotelContent *> m_searchHotelContentVector;

    QString m_inTime;
    QString m_outTime;
};

#endif // SEARCHHOTEL_H
